package com.authine.cloudpivot.web.api.service.impl;

import com.authine.cloudpivot.web.api.dao.ExecutionPlanMapper;
import com.authine.cloudpivot.web.api.service.ExecutionPlanService;
import com.authine.cloudpivot.web.api.vo.ExecutionPlan;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName ExecutionPlanServiceImpl
 * @Description 执行计划服务类
 * @Author cp
 * @Date 2021/10/25
 */
@Slf4j
@Service
public class ExecutionPlanServiceImpl implements ExecutionPlanService {

    @Autowired
    private ExecutionPlanMapper executionPlanMapper;

    @Override
    public void insertExecutionPlans(List<ExecutionPlan> executionPlans) {
        executionPlanMapper.insertExecutionPlans(executionPlans);
    }

    @Override
    public void delExecutionPlanByParentId(String parentId) {
        executionPlanMapper.delExecutionPlanByParentId(parentId);
    }
}
